package com.san.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.san.mapper.TaomiGoodsMapper;
import com.san.pojo.TaomiGoods;
import com.san.service.ITaomiGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jack
 * @since 2022-04-01
 */
@Service
public class TaomiGoodsServiceImpl extends ServiceImpl<TaomiGoodsMapper, TaomiGoods> implements ITaomiGoodsService {
    @Autowired
    TaomiGoodsMapper taomiGoodsMapper;

    @Override
    public List<TaomiGoods> toList() {
        return taomiGoodsMapper.selectLi();
    }

    @Override
    public List<TaomiGoods> select(String name) {
        //List<TaomiGoods> goodsname = taomiGoodsMapper.selectList(new QueryWrapper<TaomiGoods>().like("goodsname", name));
        List<TaomiGoods> goodsname = taomiGoodsMapper.select(name);
        return goodsname;
    }
}
